<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <img src="./demo.png" alt="">
    <script>
        // .画出原型链，并且在vscode上写上每一步的代码，以及对应的对象是否全等的判断
        const Demo = function(uname,age,gender){
            this.uname=uname,
            this.age=age,
            this.gender=gender
        }
        const u= new Demo('zero','10000','男')
        console.log(u);
       console.log( u.__proto__===Demo.prototype);
       console.log(u.__proto__.__proto__===Object.prototype);
       console.log(Demo.prototype.constructor===Demo);
       console.log(u.__proto__.constructor===Demo);
       console.log(u.__proto__.__proto__.constructor===Object);
       console.log(u.constructor===Demo);
       console.log(u.constructor.prototype===Demo.prototype);
    </script>
</body>
</html>